<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html class="no-js" lang="zxx">
<head>
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <title>Shop | eCommers</title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="shortcut icon" type="image/x-icon"
        href="${pageContext.request.contextPath}/assets/img/icon/favicon.png">
    <jsp:include page="${pageContext.request.contextPath}/common/css.jsp"></jsp:include>
</head>
<body>
<jsp:include page="${pageContext.request.contextPath}/common/header2.jsp"></jsp:include>
<main>
  <section class="cart_area">
    <div class="container">
      <div class="cart_inner">
        <div class="table-responsive">
          <table class="table">
            <thead>
            <tr>
              <th scope="col">Username</th>
              <th scope="col">Password</th>
              <th scope="col">Email</th>
              <th scope="col">Country</th>
              <th scope="col">Province</th>
              <th scope="col">operation</th>

            </tr>
            </thead>
            <tbody>

            <c:forEach items="${userList}" var="user">
                <tr>
                  <td>
                    <a href="">
                      <p>${user.username}</p>
                    </a>
                  </td>
                  <td>
                    <h5>${user.password}</h5>
                  </td>
                  <td>
                    <a href="${pageContext.request.contextPath}/user/toModify.do?userid=${user.id}"
                       class="btn">update</a>
                    <a href="${pageContext.request.contextPath}/user/deleteUserById.do?userid=${user.id}"
                       class="btn">remove</a>
                  </td>
                </tr>
            </c:forEach>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </section>
  <!--================End Cart Area =================-->
</main>
<jsp:include page="${pageContext.request.contextPath}/common/Foot.jsp"></jsp:include>
<jsp:include page="${pageContext.request.contextPath}/common/js.jsp"></jsp:include>
</body>
</html>